package com.zcm.ioTest;

import org.junit.Test;

import java.io.*;

public class ioTest {
    @Test
    public void InPutStreamTest() throws IOException {
        File file = new File("in.txt");
        InputStream in = new FileInputStream(file);
        int data = 0;
        while ((data = in.read()) != -1) {
            System.out.print((char) data);
        }
        in.close();
    }
}
